<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {

            background-color: #d6c1e9;
        }
        div {
            /* background-image: url(https://t7.baidu.com/it/u=1595072465,3644073269&fm=193&f=GIF); */
            background-image: url(../female.png);
            background-repeat: no-repeat;
            width: 700px;
            height: 300px;
            background-position: 100px center;
            /* background-size: 700px 300px; */
            background-size: contain;
        }
    </style>
</head>
<body>
    <div>
        这是我在学习背景相关的属性
    </div>
</body>
</html>